脚本(Scripting)API 参考(API Reference)gpuVertexAttribute本页总览VertexAttribute顶点缓冲区布局中的逐顶点属性。 offset 是该属性在顶点中的字节偏移量(默认为 0)。 对于具有多个属性的交错布局,您必须显式设置偏移量,例如 position(float3 = 12 字节)的 offset = 0,normal 的 offset = 12,等等。 字段 format slot offset